//
//  RestaurantDetailViewController.h
//  RegBars
//
//  Created by Huu Nhat on 7/26/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <MapKit/MapKit.h>
#import <MapKit/MKAnnotation.h>
#import "RestaurantDetail.h"
#import "Restaurant.h"
#import "UICGDirections.h"

@class UICRouteOverlayMapView;

@interface RestaurantDetailViewController : UIViewController <MKMapViewDelegate, UICGDirectionsDelegate> {
    CLLocationDegrees zoomLevel;
	UILabel *restaurantName;
	UIImageView *restaurantThumbnail;
	UILabel *titleLabel;
	UITextView *timeTextView;
	CLLocation *currentLocation;
	RestaurantDetail *restaurantDetail;
	Restaurant *restaurant;
	IBOutlet UIView *titleBar;
	//
    MKMapView *routeMapView;
	UICRouteOverlayMapView *routeOverlayView;
	UICGDirections *diretions;
	NSString *startPoint;
	NSString *endPoint;
	NSArray *wayPoints;
	UICGTravelModes travelMode;
    BOOL initializing;
}

@property (nonatomic, assign) CLLocation *currentLocation;
@property (nonatomic, assign) Restaurant *restaurant;
@property (nonatomic, retain) RestaurantDetail *restaurantDetail;
@property (nonatomic, retain) IBOutlet UILabel *restaurantName;
@property (nonatomic, assign) IBOutlet UIImageView *restaurantThumbnail;
@property (nonatomic, retain) IBOutlet UILabel *titleLabel;
@property (nonatomic, retain) IBOutlet UITextView *timeTextView;
//
@property (nonatomic, retain) NSString *startPoint;
@property (nonatomic, retain) NSString *endPoint;
@property (nonatomic, retain) NSArray *wayPoints;
@property (nonatomic) UICGTravelModes travelMode;
//
- (void)update;

- (IBAction)back;
//-(CLLocationCoordinate2D) addressLocation;

@end
